
package com.bluelinelabs.conductor.demo.util;

import ohos.app.Context;

import com.bluelinelabs.conductor.demo.ResourceTable;

/**
 * lipeiquan
 *
 * @since 2021-05-06
 */
public class ColorUtil {

    public static String getMaterialColor(Context context, int index) {
        String[] colorArray = context.getStringArray(ResourceTable.Strarray_mdcolor_300);
        index = index % colorArray.length;
        return colorArray[index];
    }

}
